from pylearn2.config import yaml_parse

def main():
    print 'hi\n'
    path = "softreg.yaml"
    
    with open(path, 'r') as f:
        yaml_script = f.read()
        
    train = yaml_parse.load(yaml_script)
    print type(train)
    train.main_loop()
    
main()